package net.hn.hnms.biz.equipment.mapper;


import net.hn.hnms.biz.api.feign.model.DataStateVo;
import net.hn.hnms.biz.equipment.domain.EquPointTable;
import net.hn.hnms.biz.equipment.domain.vo.EquipmentSwitchVo;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * Author: PanSX
 * Date: 2022/8/13 14:33
 */
public interface EquipmentMapper {
    /**
     *
     * 重大设备实时数据
     * @param equType
     * @param apiPage
     * @return
     */
    List<EquPointTable> queryCurrentByEquType(@Param("equType") String equType, @Param("apiPage")String apiPage,@Param("mineCode")String mineCode);
    List<EquPointTable> queryCurrentByEquType(@Param("dbName")String dbName,@Param("equType") String equType, @Param("apiPage")String apiPage,@Param("mineCode")String mineCode);

    /**
     * 运行状态
     * @return
     */
    EquipmentSwitchVo runningState(@Param("equType") String equType, @Param("tag")String tag);

    EquipmentSwitchVo runningStateByMineCode(@Param("equType") String equType, @Param("tag")String tag, @Param("mineCode") String mineCode);

    /**
     * 砚北支架压力图表
     * @return
     */
    List<Map<String, BigDecimal>> zjylChart();

    /**
     * 砚北支架压力图表,根据 动态压力字符串
     *
     * @return
     */
    List<Map<String, BigDecimal>> zjylChartStr(@Param("supportStr") String supportStr);
    /**
     * 高头窑支架压力图表
     * @return
     */
    List<Map<String, BigDecimal>> zjylChart1();

    /**
     * 报警消息
     * @param dbName
     * @param equType
     * @return
     */
    List<EquPointTable> alarmMessageItem(@Param("dbName")String dbName,@Param("equType") String equType);

    List<Map<String, Object>> operationRate(@Param("startDate")String startDate, @Param("offset")Integer offset);

    /**
     * 砚北采割高度图表
     * @return
     */
    List<Map<String, BigDecimal>> cggdChart();
    /**
     * 砚北采割高度图表  根据动态压力文本
     * @return
     */
    List<Map<String, BigDecimal>> cggdChartByPressure(@Param("supportStr") String supportStr);
    /**
     * 高头窑采割高度图表
     * @return
     */
    List<Map<String, BigDecimal>> cggdChart1();

    /**
     * 砚北采煤机实时数据
     * @return
     */
    List<Map<String, BigDecimal>> mining(@Param("startDate")String startDate);
    /**
     * 高头窑采煤机实时数据
     * @return
     */
    List<Map<String, BigDecimal>> mining1(@Param("startDate")String startDate);

    List<DataStateVo> getMaxTime(@Param("mineCode")String mineCode, @Param("companyCode")String companyCode,@Param("table") String table);

    /**
     * 拦截主通风的请求 去直接查询视图
     * @param apiPage
     * @return
     */
    List<EquPointTable> queryCurrentByApiPage(@Param("apiPage") String apiPage);

    /**
     * 灵露采煤机实时数据
     * @return
     */
    List<Map<String, BigDecimal>> mining2(@Param("startDate")String startDate);
}
